package com.biz.primus.model.promotion.vo.resp;

import com.google.common.collect.Lists;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;
import java.util.List;
import lombok.Getter;
import lombok.Setter;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 订单促销信息返回Vo
 *
 * @author david-liu
 */
@Getter
@Setter
@ApiModel(value = "订单促销返回值模型")
public class OrderPromotionRespVo implements Serializable {
    private static final long serialVersionUID = 8103642806191688433L;

    /**
     * 订单促销明细
     */
    @ApiModelProperty(value = "订单促销返回明细")
    private List<OrderPromotionRespItemVo> orderPromotions = Lists.newArrayList();

    public void appendRespItem(OrderPromotionRespItemVo respItemVo) {
        this.orderPromotions.add(respItemVo);
    }

    @Override
    public String toString() {
        return ToStringBuilder.reflectionToString(this, ToStringStyle.JSON_STYLE);
    }
}
